package com.yixun.qfbao.service.impl;

import com.yixun.qfbao.mapper.ResourcesMapper;
import com.yixun.qfbao.model.Resources;
import com.yixun.qfbao.model.dto.UserResourcesDto;
import com.yixun.qfbao.service.SysReourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/8/26.
 */
@Service("sysResources")
public class SysResourceServiceImpl implements SysReourceService {
    @Autowired
    ResourcesMapper resourcesMapper;

    @Override
    public List<Resources> getReourcesByRole(UserResourcesDto userResourcesDto ) {
        return resourcesMapper.findUserResources(userResourcesDto);
    }
}
